<?php
class AdminBaseController extends BaseController {
	public function __construct(){
		parent::__construct();
		if (empty($_SESSION['admin'])){
			header("Location:login.html");
		}
		$adminServer = HttpServerManager::getAdminServer();
 		$permissions =  $adminServer->permissions(Route::$module,Route::$controller);
 		if ($permissions ==false){
			ClassManager::getToos()->msgbox("对不起你权限不够"); 		
 		}
 		else{
 			//操作日志
 			HttpServerManager::getAdminOperationLogServer()->add(Route::$module,Route::$controller);
 		}
	}
}
?>